//
//  UIView+WJCBaseXibDeploy.h
//  花絮
//
//  Created by wjc on 2021/11/14.
//  Copyright © 2021 飞麦科技. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "NSLayoutConstraint+constraintLayout.h"
NS_ASSUME_NONNULL_BEGIN

@interface UIView (WJCBaseXibDeploy)
//定义model中的字段,若model多层级则.隔开,若多model,则用,隔开若插入默认文字 :/隔开默认文字只能前后,
@property (nonatomic, strong) IBInspectable NSString *modelDeploy;

/// 前置展示str,固定配置
@property (nonatomic, strong) IBInspectable NSString *headDeploy;
/// 后置展示str,固定配置
@property (nonatomic, strong) IBInspectable NSString *footDeploy;
///和tag一样,用于区别
@property (nonatomic, strong) IBInspectable NSString *tagStr;
/// 按钮request
@property (nonatomic, strong) NSString *btnDeploykey;
///根据tagstr找到视图中对应的视图
-(UIView*)getInnerWithTagStr:(NSString*)tagStr;

/// 获取视图中指定约束
/// @param tagStr 指定视图标识
/// @param constraintRagStr 指定约束标识
-(NSLayoutConstraint*)getInnerViewConstrantWithTagStr:(NSString*)tagStr andConstantStr:(NSString*)constraintRagStr;
/// 根据tagstr找出视图中所有对应的视图数组
/// @param tagStr 对应tagstr
-(NSArray<UIView*>*)getInnerViewsWithTagStr:(NSString *)tagStr;

/// 从视图中搜索指定约束
/// @param constraintRagStr 约束标识
-(NSLayoutConstraint*)getConstantStr:(NSString*)constraintRagStr;
/// 根据tagstr找出视图中所有对应的视图数组
/// @param tagStr 对应tagstr

/// 获取视图中的相应类型
/// @param cls 类型
-(NSArray<UIView*>*)getInnerViewsWithClass:(Class)cls;
@end

NS_ASSUME_NONNULL_END
